package cn.edu.zafu.bigdata.x.xiejunjie.例4_12;

public class Outer {
    private int size;

    public class Inner{
        public int size;
        public void doStuff(int size){
            size++;
            this.size++;
            Outer.this.size++;
            System.out.println("size in Inner.doStuff():"+size);
            System.out.println("size in the Inner class:"+this.size);
            System.out.println("size in the Outer class:"+Outer.this.size);
        }
    }
    Inner i = new Inner();
    public void increaseSize(int s){
        i.doStuff(s);
    }

    public static void main(String[] args) {
        Outer o = new Outer();
        o.increaseSize(10);
    }
}
